﻿<Window x:Class = "MtmDeepCopy.ProgressDlg"
        xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x = "http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm = "clr-namespace:MtmDeepCopy"
        xmlns:converters = "clr-namespace:MtmDeepCopy"
        Title = "Window1" Height = "300" Width = "584" ShowInTaskbar = "False" WindowStartupLocation = "CenterOwner" Loaded = "Window_Loaded">
    <Window.Resources>
        <converters:EnumToPicConverter x:Key = "imageConverter" />
    </Window.Resources>

    <Window.DataContext >
        <vm:ProgressViewModel />
    </Window.DataContext>
    <Grid >
        <ProgressBar Height = "18" HorizontalAlignment = "Left" Margin = "12,29,0,0" Name = "progressTotal" VerticalAlignment = "Top" Width = "533" />
        <DataGrid AutoGenerateColumns = "False" Margin = "12,108,0,0" Name = "dataGrid1" VerticalAlignment = "Top" HorizontalAlignment = "Left" Width = "533" ItemsSource = "{Binding Path = Actions}" IsReadOnly = "True" HorizontalGridLinesBrush = "{x:Null}" VerticalGridLinesBrush = "{x:Null}" >
            <DataGrid.Columns>
                <DataGridTemplateColumn MaxWidth = "250" Header = "" CanUserReorder = "True">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Image Source = "{Binding Path = Status, Converter = {StaticResource imageConverter}}" />
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTextColumn Header = "Action" Binding = "{Binding Path = Title}"/>
                <DataGridTextColumn Header = "Message" Binding = "{Binding Path = Message}" />
            </DataGrid.Columns>
        </DataGrid>
        
        <TextBlock Height = "23" HorizontalAlignment = "Left" Margin = "21,53,0,0" Name = "txtCurrentActivity" Text = "TextBlock" VerticalAlignment = "Top" Width = "378" />
        <Button Name  = "cmdClose" Content = "Close" Height = "23" HorizontalAlignment = "Left" Margin = "244,12,0,12"  VerticalAlignment = "Bottom" Width = "75" Click = "cmdClose_Click" Visibility = "Visible" />
        <TextBlock Height = "23" HorizontalAlignment = "Left" Margin = "21,69,0,0" Name = "txtCurrentDetail" Text = "TextBlock" VerticalAlignment = "Top" Width = "378" />
        <!--<ListBox Height = "45" HorizontalAlignment = "Left" Margin = "21,163,0,0" Name = "listBox1" VerticalAlignment = "Top" Width = "609" ItemsSource = "{Binding Path = Actions}" >
            <ListBoxItem>
                <StackPanel>
                <Image Source = "{Binding Path = Status, Converter = {StaticResource imageConverter}}"></Image>                
                <TextBlock Name = "txtTitle" Text = "{Binding Path = Actions/Title}" />
               <TextBlock Name = "txtMessage" Text = "{Binding Path = Actions/Message}" />
                </StackPanel>
            </ListBoxItem>
        </ListBox>-->
    </Grid>
</Window>
